LXM: better splittable pseudorandom number generators (and almost as fast)

نویسندگان

چکیده

In 2014, Steele, Lea, and Flood presented SplitMix, an object-oriented pseudorandom number generator (prng) that is quite fast (9 64-bit arithmetic/logical operations per 64 bits generated) also splittable . A conventional prng object provides a generate method returns one value updates the state of prng; has second operation, split , replaces original with two (seemingly) independent objects, by creating returning new such updating object. Splittable objects make it easy to organize use numbers in multithreaded programs structured using fork-join parallelism. This overall strategy still appears be sound, but specific arithmetic calculation used for SplitMix algorithm some detectable weaknesses, period any limited 2 Here we present LXM family algorithms. The idea old one: combine outputs algorithms, then (optionally) feed result mixing function. An uses linear congruential subgenerator F -linear subgenerator; examples studied this paper (LCG) 16 32 or 128 multipliers recommended L’Ecuyer Steele Vigna, xor-based (XBG) xoshiro xoroshiro as described Blackman Vigna. For functions study MurmurHash3 finalizer function; variants David Stafford, Doug degski; null (identity) Like both operation operation. Also like requires no locking other synchronization (other than usual memory fence after instance initialization), suitable simd instruction sets because branches loops. We analyze equidistribution properties generators, results thorough testing members family, TestU01 PractRand test suites, not only on single instances collections instances, parallel, ranging size from 24 Single include strong function appear have major significantly more robust against accidental correlation setting. believe LXM, “everyday” scientific machine-learning applications (but cryptographic applications), especially when concurrent threads distributed processes are involved.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Empirical Pseudorandom Number Generators

The most common pseudorandom number generator or PRNG, the linear congruential generator or LCG, belongs to a whole class of rational congruential generators. These generators work by multiplicative congruential method for integers, which implements a ”grow-and-cut procedure”. We extend this concept to real numbers and call this the real congruence, which produces another class of random number...

متن کامل

Fast and Small Nonlinear Pseudorandom Number Generators for Computer Simulation

In this paper we present Tyche, a nonlinear pseudorandom number generator designed for computer simulation. Tyche has a small 128-bit state and an expected period length of 2. Unlike most nonlinear generators, Tyche is consistently fast across architectures, due to its very simple iteration function derived from ChaCha, one of today’s fastest stream ciphers. Tyche is especially amenable for the...

متن کامل

Fast lattice reduction for F2-linear pseudorandom number generators

Sequences generated by an F2-linear recursion have wide applications, in particular, pseudorandom number generation. The dimension of equidistribution with v-bit accuracy is a most important criterion for the uniformity of the generated sequence. The fastest known method for computing these dimensions is proposed by Couture and L’Ecuyer, based on Lenstra’s lattice basis reduction and the dual l...

متن کامل

Almost Optimal Pseudorandom Generators for Spherical Caps

Halfspaces or linear threshold functions are widely studied in complexity theory, learning theory and algorithm design. In this work we study the natural problem of constructing pseudorandom generators (PRGs) for halfspaces over the sphere, aka spherical caps, which besides being interesting and basic geometric objects, also arise frequently in the analysis of various randomized algorithms (e.g...

متن کامل

Engineering Nonlinear Pseudorandom Number Generators

In the era of multi and many-core processors, computer simulations increasingly require parallel, small and fast pseudorandom number generation. Although linear generators lend themselves to a simpler evaluation that ensures favorable properties like guaranteed period, they may adversely affect the result of simulations or be quite large. Conversely, nonlinear generators may provide apparently ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2021

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3485525